package com.woniuxy.commons.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseResult<T> {
    private int code;           // 状态码，参考http状态码
    private String msg;         // 返回的消息
    private T data;             // 数据
    private ResStatus status;   // 响应状态，前端以此作为判断的依据，进行下一步操作
    public static final ResponseResult SUCCESS=new ResponseResult(200,"成功",null,ResStatus.SUCCESS);
    public static final ResponseResult Fail=new ResponseResult(500,"失败",null,ResStatus.FAIL);
}
